package com.ubb.dbms.domain.xml;

import org.simpleframework.xml.Attribute;
import org.simpleframework.xml.Element;
import org.simpleframework.xml.Root;

@Root (name = "IndexFile")
public class IndexFile {

	public static final String B_PLUS_TREE_INDEX_TYPE = "BPlusTree";
	
	@Attribute (name = "indexName")
	private String indexName;
	
	@Attribute (name = "indexFileName")
	private String indexFileName;
	
	@Attribute (name = "keyLenght")
	private String keyLenght;
	
	@Attribute (name = "isUnique")
	private String isUnique;
	
	@Attribute (name = "indexType")
	private String indexType;
	
	@Element (name = "IndexAttributes")
	private IndexAttributes indexAttributes;

	public String getIndexName() {
		return indexName;
	}

	public void setIndexName(String indexName) {
		this.indexName = indexName;
	}

	public String getIndexFileName() {
		return indexFileName;
	}

	public void setIndexFileName(String indexFileName) {
		this.indexFileName = indexFileName;
	}

	public String getKeyLenght() {
		return keyLenght;
	}

	public void setKeyLenght(String keyLenght) {
		this.keyLenght = keyLenght;
	}

	public String getIsUnique() {
		return isUnique;
	}

	public void setIsUnique(String isUnique) {
		this.isUnique = isUnique;
	}

	public String getIndexType() {
		return indexType;
	}

	public void setIndexType(String indexType) {
		this.indexType = indexType;
	}

	public IndexAttributes getIndexAttribute() {
		return indexAttributes;
	}

	public void setIndexAttribute(IndexAttributes indexAttribute) {
		this.indexAttributes = indexAttribute;
	}
	
	
}
